-- GENERATED SPELL FOR [Kobold Digger] --


function spell0_1236(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1236', 20000, 1)
end

function Sorts_1236(pUnit, Event)
local choix_sorts_1236 = math.random(0, 0)
if choix_sorts_1236 == 0 then
pUnit:RegisterEvent('spell0_1236', 1, 1)
end
end

function mob1236_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1236', math.random(1500, 3000), 1)
end

function mob1236_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1236_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1236_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1236, 1, 'mob1236_Action')
RegisterUnitEvent(1236, 2, 'mob1236_Leave')
RegisterUnitEvent(1236, 3, 'mob1236_Kill')
RegisterUnitEvent(1236, 4, 'mob1236_Die')
